package router

import (
	"center-platform/internal/controller/v1/post"
	"center-platform/middleware"
	"github.com/gin-gonic/gin"
)

func RegisterPostRouter(r *gin.Engine) {
	var group = r.Group("/v1/post")
	group.Use(middleware.AuthMiddleware())
	group.GET("info", post.Info)
	group.GET("list", post.List)
	group.POST("add", post.Add)
}
